<?php 
	include_once '../../include/inc_session.php';
	
	$_SESSION['formule'] = intval($_POST['val_sel']);
	$oCdtVente = new dataObject_conditionVente();
	$bBenef = $oCdtVente->conditionVente_isClauseBeneficiaireExists(intval($_GET['id2']), intval($_GET['id1']));
		 
	// construction de la liste deroulante
	$aff = "";
 	if($bBenef)
 		$aff.="<span><input value='B' type='radio' id='beneficaire'/><span>BENEFICIAIRE</span></span>"; 
	
 	// envoi reponse Php a Ajax	
	echo $aff;
	
	include_once PATH_INCLUDE.'inc_pied_page.php';
?>